function popupWin(e, target, panel, t_id) {
	// debugObj(global_page);
	// 应对当浏览模式时，pin和max对应不同的url,如果没有指定url，就使用默认的url，如果指定了，就是
	if (t_id == 'pin') {
		var restoreHidden = true;
		var maxHidden = false;
		var width = 400;
		var height = 300;
		var left = (Ext.getBody().getSize().width - width) / 2;
		var top = (Ext.getBody().getSize().height - height) / 2;

		if (t_id == "max") {
			restoreHidden = false;
			maxHidden = true;
			left = 0;
			top = 0;
			width = Ext.getBody().getSize().width;
			height = Ext.getBody().getSize().height;
		}

		var wtools = [{
			id : 'restore',
			hidden : restoreHidden,
			handler : function(e, target, panel) {
				panel.setSize(400, 300);
				panel.setPosition((Ext.getBody().getSize().width - 400) / 2,
						(Ext.getBody().getSize().height - 300) / 2);

				panel.tools['restore'].setVisible(false);
				panel.tools['maximize'].setVisible(true);
			}
		}, {
			id : 'maximize',
			hidden : maxHidden,
			handler : function(e, target, panel) {
				panel.setSize(Ext.getBody().getSize().width, Ext.getBody()
								.getSize().height);
				panel.setPosition(0, 0);

				panel.tools['restore'].setVisible(true);
				panel.tools['maximize'].setVisible(false);
			}
		}, {
			id : 'refresh',
			handler : function(e, target, panel) {
				// var _panel = (panel.find("xtype", "iframepanel"))[0]
				// _panel.setSrc(_panel.currentUrl);
				var listIframe = panel._iframe_id;
				document.getElementById(listIframe).src = panel.CurContent;
			}
		}]

		var CurContent = (function() {
			if (panel.editUrl && panel.editUrl != 'undefined') {
				return panel.editUrl;
			} else {
				return panel.currentUrl
			}
		})();
		var _iframe_id = '_iframe_' + panel.id;
		var curPanel = new Ext.Panel({
					frame : false,
					margins : '0 0 0 0',
					border : true,
					bodyBorder : true,
					id : '_' + panel.id,
					title : panel.title,
					draggable : true,
					items : [{
						html : '<iframe id="' + '_iframe_' + panel.id
								+ '"  name="' + '_iframe_' + panel.id
								+ '" src="' + CurContent + '" width="100%" ' +
								 'height="100%" '
								 + 'frameborder="0" '
								+'scrolling="no"' + '></iframe>'
					}]
				});
		var defaultConfig = {
			id : (panel.getId() + '-MAX'),
			tools : wtools,
			left : left,
			top : top,
			width : width,
			height : height,
			hideBorders : true,
			plain : true,
			layout : 'fit',
			autoScroll : false,
			border : false,
			bodyBorder : false,
			frame : true,
			pinned : true,
			bodyStyle : 'background-color: #ffffff;',
			src_ : curPanel,
			_iframe_id : _iframe_id,
			CurContent : CurContent
		};
		target.window = new Ext.Window(defaultConfig);
		target.window.add(curPanel);
		target.window.show();
	}

	if (t_id == 'max') {
		var restoreHidden = true;
		var maxHidden = false;
		var width = 400;
		var height = 300;
		var left = (Ext.getBody().getSize().width - width) / 2;
		var top = (Ext.getBody().getSize().height - height) / 2;

		if (t_id == "max") {
			restoreHidden = false;
			maxHidden = true;
			left = 0;
			top = 0;
			width = Ext.getBody().getSize().width;
			height = Ext.getBody().getSize().height;
		}
		var wtools = [{
			id : 'restore',
			hidden : restoreHidden,
			handler : function(e, target, panel) {
				panel.setSize(400, 300);
				panel.setPosition((Ext.getBody().getSize().width - 400) / 2,
						(Ext.getBody().getSize().height - 300) / 2);
				panel.tools['restore'].setVisible(false);
				panel.tools['maximize'].setVisible(true);
			}
		}, {
			id : 'maximize',
			hidden : maxHidden,
			handler : function(e, target, panel) {
				panel.setSize(Ext.getBody().getSize().width, Ext.getBody()
								.getSize().height);
				panel.setPosition(0, 0);
				panel.tools['restore'].setVisible(true);
				panel.tools['maximize'].setVisible(false);
			}
		}, {
			id : 'refresh',
			handler : function(e, target, panel) {
				var listIframe = panel._iframe_id;
				document.getElementById(listIframe).src = panel.CurContent;
			}
		}]
		var CurContent = (function() {
			if (panel.maximizeUrl && panel.maximizeUrl != 'undefined') {
				return panel.maximizeUrl;
			} else {
				return panel.currentUrl
			}
		})();
		var _iframe_id = '_iframe_' + panel.id;
		var curPanel = new Ext.Panel({
					id : '_' + panel.id,
					title : panel.title,
					draggable : true,
					items : [{
						html : '<iframe id="' + '_iframe_' + panel.id
								+ '"  name="' + '_iframe_' + panel.id
								+ '" src="' + CurContent + '" width="100%" ' +
								 'height="100%" '
								 + 'frameborder="0" '
								+'scrolling="no"' + '></iframe>'
					}]
				});
		var defaultConfig = {
			id : (panel.getId() + '-MAX'),
			tools : wtools,
			left : left,
			top : top,
			width : width,
			height : height,
			hideBorders : true,
			plain : true,
			layout : 'fit',
			autoScroll : false,
			border : false,
			bodyBorder : false,
			frame : true,
			pinned : true,
			bodyStyle : 'background-color: #ffffff;',
			src_ : curPanel,
			_iframe_id : _iframe_id,
			CurContent : CurContent
		};
		target.window = new Ext.Window(defaultConfig);
		target.window.add(curPanel);
		target.window.show();
	}
}